package enums.multi;

import static enums.multi.Outcome.*;

/**
 * Describe
 *
 * @author maguangming
 * @since 2022/9/14 22:28
 */
public class Paper implements Item{
    @Override
    public Outcome compete(Item item) {
        return item.eval(this);
    }

    @Override
    public Outcome eval(Paper item) {
        return DRAW;
    }

    @Override
    public Outcome eval(Rock item) {
        return LOSE;
    }

    @Override
    public Outcome eval(Scissors item) {
        return WIN;
    }

    @Override
    public String toString() {
        return "布";
    }
}
